const http = require("http");


const server = http.createServer((req,res)=>{
       res.setHeader("Access-Control-Allow-Origin", "*")//跨域
       res.setHeader('Content-Type', 'text/html; charset=utf-8');//设置乱码
        if(req.url != "/favicon.ico"){
            console.log(req.url);
        }
        res.end("1111")

})

server.listen(3000)

console.log(666);
